package com.extension.company.view.home;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * 作者:zwk
 * 联系方式：497981239@qq.com
 * 时间：on 2019/4/16 11:35
 * 功能：
 */
public class MyDataHelperUtil extends SQLiteOpenHelper {

	public MyDataHelperUtil(Context context) {
		super(context, "my.db", null, 1);

	}


	@Override
	public void onCreate(SQLiteDatabase db) {
//		db.execSQL("create table  if not exists user ( id integer primary key autoincrement,usename text,password text)");
		db.execSQL("create table Student ("
				+ "id integer primary key autoincrement," + "name text,"
				+ "score real," + "age integer," + "gender text)");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

	}
}
